﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;

namespace SDT.Libraries.Utilities
{

    public class SecurityHelper
    {

        /// <summary>
        /// Hashes the password.
        /// </summary>
        /// <param name="sPass">The s pass.</param>
        /// <param name="passFormat">The pass format.</param>
        /// <returns></returns>
        public static string HashPassword(string sPass, PasswordFormat passFormat)
        {
            return FormsAuthentication.HashPasswordForStoringInConfigFile(sPass, passFormat.ToString());
        }        
    }
}
